package cn.com.graPro.service;

import javax.annotation.Resource;

import cn.com.graPro.bean.User;
import cn.com.graPro.repository.UserRopository;
import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Transactional;


@Service
public class UserService {
	
	
	@Resource
	private UserRopository userRepository;
	
	
	@Transactional
	public User addUser(User user) {
		user= userRepository.save(user);
		return user;
		
	}
	
	
}
